package Employee;

import Department.Department;

import java.util.ArrayList;

public class EmployeeList {
    private ArrayList<Employee> employees =  new ArrayList<Employee>();
    public void addEmployee(Employee employee) {
        employees.add(employee);
    }
    public void accept(Department handler){
        for(Employee emp : employees){
            emp.accept(handler);
        }
    }
}
